<a href="<?php echo $this->url(array('controller' => 'category', 'action' => 'browse-categories'), null, true);?>">Przeglądaj</a>
<div>
<?php foreach ($this->categories as $cat):?>
<div style="padding-left: <?php echo $cat->level * 20?>px;">
	<?php if ($cat->hasDescendants()):?>
		<?php echo $cat->nazwa;?>
	<?php else: ?>
		<a href="<?php echo $this->url(array('controller' => 'category', 'action' => 'show-category', 'id' => $cat->id), null, true);?>">
			<?php echo $cat->nazwa?>
		</a>
	<?php endif; ?>
</div>
<?php endforeach; ?>

</div>